# -*- coding:utf-8 -*-
#创建一个奖牌榜，输出国家的奖牌数
class countryMedal(object):
    name = ''
    goldNum = 0
    silverNum = 0
    bronzeNum = 0
    def __init__(self,name,goldNum,silverNum,bronzeNum):
        self.name = name
        self.goldNum = goldNum
        self.silverNum = silverNum
        self.bronzeNum = bronzeNum

    def MedalNum(self):
        print '%s has %d gold medal,%d silver medal and %d bronze medal' % (self.name,self.goldNum,self.silverNum,self.bronzeNum)

    def WinGMedal(self):
        self.goldNum += 1

    def WinSMedal(self):
        self.silverNum += 1

    def WinBMedal(self):
        self.bronzeNum += 1



china = countryMedal('china',1,3,4)
china.MedalNum()
china.WinBMedal()
china.WinGMedal()
china.MedalNum()